//这是学习继承所创建的
//动物类
public class Animal {
     String name;
     int age;
     float weight;

    public void eat(){
        System.out.println(name + " 正在吃饭");
    }
    public void sleep(){
        System.out.println(name + "正在睡觉");
    }
}
